#!/usr/bin/python3

import os
from tornado import ioloop, web

curr_dir = os.path.dirname(__file__)
root = os.path.join(curr_dir, "..")
# print(">>>", root)

application = web.Application([
    (r"/(.*)", web.StaticFileHandler, {"path": root, "default_filename": "index.html"})
])

if __name__ == '__main__':
    application.listen(1124)
    ioloop.IOLoop.instance().start()
